package service;

import com.github.pagehelper.PageInfo;
import entity.*;

import java.util.List;


public interface SService {
    PageInfo<Service> selectByPage(LayRequest layRequest);

    boolean insert(Service service);

    boolean update(Service service);

    boolean batchDelete(Integer[] ids);

    List<Service> selectWithCustomer();

    Service selectById(Integer id);

    List<Service> selectUserAccount();

    boolean insertWithHandler(Service_Transfer service_transfer);


    boolean updateByNewanagerId(Integer new_manager_id,Integer service_id);

    Users selectByUserId(Integer id);

    Customer selectByCustomerId(Integer id);

    PageInfo<CustomerCare> customerCareList(LayRequest layRequest);

    Service selectByServiceId(Integer id);

    List<Service> selectWithCustomerName();

    Service selectByHandler(Integer handler);

    Service selectCustomer_id(Integer customer_id);

    boolean handleService(Service service);

    Service selectByServiceIdWithCustomerId(Integer id);

    List<Service_Transfer> selectServiceTransfer(Integer id);
}
